﻿@model Sohobloo.SoAuth.Web.Models.ActionModel

<h2>Add Action</h2>
<p>Function: @Html.DisplayTextFor(m => m.FunctionName)</p>
@Html.ActionLink("Back", "Index", new { id = Model.FunctionId })
@using (Html.BeginForm())
{
    <fieldset>
        <legend>Action</legend>
        <div class="editor-label">
            @Html.LabelFor(m => Model.ActionName)
        </div>
        <div class="editor-field">
            @Html.EditorFor(m => Model.ActionName)
        </div>
        <div class="editor-label">
            @Html.LabelFor(m => Model.ActionPath)
        </div>
        <div class="editor-field">
            @Html.EditorFor(m => Model.ActionPath)
        </div>
        <div class="editor-label">
            @Html.LabelFor(m => Model.ActionEnabled)
        </div>
        <div class="editor-field">
            @Html.EditorFor(m => Model.ActionEnabled)
        </div>
        <div class="editor-label">
            @Html.LabelFor(m => Model.IgnoreControl)
        </div>
        <div class="editor-field">
            @Html.EditorFor(m => Model.IgnoreControl)
        </div>
        <div>
            @Html.HiddenFor(m => Model.FunctionId)
            <input type="submit" value="Submit" />
        </div>
    </fieldset>
}